package com.hyt.it.ogt.kq.service.gov.feign.kh;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.it.ogt.kq.service.gov.feign.kh.model.AnalysisCenterFileParam;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 报名接口
 *
 * @author 洪滨滨
 * @since 2020/6/12
 */
@FeignClient(name = "it-ogt-kh",
        contextId = "it-ogt-kh-gather",
        path = "/gather/center",
        fallbackFactory = KhClientHystrix.class,
        configuration = OAuth2FeignRequestConfig.class)
public interface KhClient {

    @PostMapping("/analysisCenterFile")
    ApiResponse<String> analysisCenterFile(@RequestBody AnalysisCenterFileParam param);

    @DeleteMapping("/deleteAnalysisData")
    ApiResponse<Boolean> deleteAnalysisData(@RequestParam String timeId);
}
